﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<section id="content" role="main">

                <header>
                    <h1 id="admin-page-heading">Users</h1>
                </header>
            
            <div class="content-container">
                

                <div class="content-body aui-panel">

        <header>
            <nav class="aui-toolbar">
                <div class="toolbar-split toolbar-split-right">
                    <ul class="toolbar-group">

                         @Ajax.ActionLink("Invite User", "Add","User", new AjaxOptions { HttpMethod = "GET", UpdateTargetId = "result", InsertionMode = InsertionMode.Replace, OnSuccess = "openPopup" })

                    </ul>
                </div>
            </nav>
        </header>
        <div id="result" style="display:none;"></div>
        <script type="text/javascript">
            $(document).ready(function () {
                $("#result").dialog({
                    autoOpen: false,
                    title: 'Create new user',
                    width: 500,
                    height: 'auto',
                    modal: true
                });
            });
            function openPopup() {
                $("#result").dialog("open");
            }
        </script>
        <form action="UserBrowser.jspa"
              class="aui top-label"
      
              id="user-filter"
              method="post">
            <div class="form-body">
                <h2> Filter Users </h2>
    
        <div class="aui-group">
            <div class="aui-item">
<div class="field-group">
        <label for="user-filter-userNameFilter">User Name Contains</label>
    

<input 
    class="text
    
        
        
        
        
    
    full-width"
    
    
        id="user-filter-userNameFilter"
    
    
        maxlength="255"
    
    name="userNameFilter"
    
    
        
    
    
        
    
    type="text"
    
        
    
    
        
    
/>
        
    
</div>
            </div>
            <div class="aui-item">
                




<div class="field-group">
   
        <label for="user-filter-fullNameFilter">Full Name Contains</label>
    

<input 
    class="text
    
        
        
        
        
    
    full-width"
    
    
        id="user-filter-fullNameFilter"
    
    
        maxlength="255"
    
    name="fullNameFilter"
    
    
        
    
    
        
    
    type="text"
    
        
    
    
        
    
/>

    

                
    
</div>
            </div>
            <div class="aui-item">
                




<div class="field-group">
    
                    





    
        <label for="user-filter-emailFilter">Email Contains</label>
    

<input 
    class="text
    
        
        
        
        
    
    full-width"
    
    
        id="user-filter-emailFilter"
    
    
        maxlength="255"
    
    name="emailFilter"
    
    
        
    
    
        
    
    type="text"
    
        
    
    
        
    
/>
  
</div>
            </div>
            <div class="aui-item">
                




<div class="field-group">
    
                    




    
        <label for="user-filter-group">In Group</label>
    

<select 
    class="select
    
        
        
        
        
    
    full-width"
    
        
    
    
    
        id="user-filter-group"
    
    
        
    
    name="group"
    
    
        
    
    
        
    
    type="text"
    
        
    >
    
        
            <option value="">
                Any
            </option>
        
    
    
    
    
    
    
        <option 
                
                
                
                value="jira-administrators"
                >
        
        jira-administrators
        </option>
    
        <option 
                
                
                
                value="jira-developers"
                >
        
        jira-developers
        </option>
    
        <option 
                
                
                
                value="jira-users"
                >
        
        jira-users
        </option>
    
</select>





    





     


    

                
    
</div>
            </div>
            <div class="aui-item">
                




<div class="field-group">
    
                    




    
        <label for="user-filter-usersPerPage">Users Per Page</label>
    

<select 
    class="select
    
        
        
        
        
    
    full-width"
    
        
    
    
    
        id="user-filter-usersPerPage"
    
    
        
    
    name="max"
    
    
        
    
    
        
    
    type="text"
    
        
    >
    
        
            <option value="1000000">
                All
            </option>
        
    
    
    
    
    
    
        <option 
                
                
                
                value="10"
                >
        
        10
        </option>
    
        <option 
                
                 selected="selected"
                
                value="20"
                >
        
        20
        </option>
    
        <option 
                
                
                
                value="50"
                >
        
        50
        </option>
    
        <option 
                
                
                
                value="100"
                >
        
        100
        </option>
    
</select>





    





     


    

                
    
</div>
            </div>
        </div>
  

    </div>
    
    <div class="buttons-container form-footer">
        
        <div class="buttons">
            
                




<input
    
        accesskey="s"
    
    
        
        class="button"
    
    
    
        id="user-filter-submit"
    
    
    name=""
    title="Press Alt+Shift+s to submit this form"
    type="submit"
    
        value="Filter"
        
    
    />

            
            
                


<a
    
    accesskey="`"
    
    
        
        class="cancel"
    
    href="UserBrowser.jspa?emailFilter=&group=&max=20"
    id="user-filter-cancel"
    title="Press Alt+Shift+` to cancel"
>Reset Filter</a>
            
        </div>
    </div>
    
</form> 

<div class="aui-group count-pagination">
    <div class="results-count aui-item">
        Displaying users <span class="results-count-start">1</span> to <span>1</span> of <strong class="results-count-total">1</strong>.
    </div>
    <div class="pagination aui-item">
        
        
            
        
        
    </div>
</div>
<table class="aui aui-table-rowhover" id="user_browser_table">
    <thead>
        <tr>
            <th>
                Username
            </th>
            <th>
                Full Name
            </th>
            <th class="minNoWrap">
                Login Details
            </th>
            <th>
                Groups
            </th>
            <th>
                Directory
            </th>
            <th class="minNoWrap">
                Operations
            </th>
        </tr>
    </thead>
    <tbody>
    
    <tr class="vcard user-row" data-user="l0v3thao">

        <td>@Html.ActionLink("l0v3thao", "ViewDetailUser", "User", new { @class = "user-hover user-avatar", id = "l0v3thao" })</td>
        <td data-cell-type="fullname">
            <span class="fn">NguyenNam</span><br />
            <span class="email">nguyennamk208tt@gmail.com</span>
        </td>
        <td data-cell-type="login-details" class="minNoWrap">
            
                <strong>Count:</strong> 13<br />
                <strong>Last:</strong> Today 12:05 AM<br />
                <br />
        </td>
        <td data-cell-type="user-groups">
            <ul>
            
                <li>@Html.ActionLink("jira-administrator", "DetailGroup", "Group")</li>
                 <li>@Html.ActionLink("jira-developers", "DetailGroup", "Group")</li>
                 <li>@Html.ActionLink("jira-users", "DetailGroup", "Group")</li>
            
            </ul>
        </td>
        <td data-cell-type="user-directory">JIRA Internal Directory</td>
        <td data-cell-type="operations">
            <ul class="operations-list">
                <li>@Html.ActionLink("Groups", "EditGroupOfUser", "Group")</li>
                <li>@Html.ActionLink("Project Roles", "RoleDetailOfUser", "Role")</li>
                <li>@Html.ActionLink("Edit", "Edit", "User", new { id = "edituser_link_l0v3thao" })</li>
                <li>@Html.ActionLink("Delete", "Delete", "User", new { id = "deleteuser_link_l0v3thao" })</li>
            </ul>
        </td>
    </tr>
    
    </tbody>
</table>
<div class="aui-group count-pagination">
    <div class="pagination aui-item">
        
        
            
        
        
    </div>
</div>

                </div>
            </div>
        
    </section>
